﻿using NightskyMimic.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NightskyMimic.Core
{
    //always attack with all creatures
    //and never blocks
    public class Aggressive : Strategy
    {
        public List<Attack> GenerateAttackActions(Player player, Player opponent)
        {
            var attackers = player.Zone.Creatures.Where(x => !x.Tapped).ToList();
            List<Attack> result = new List<Attack>();

            foreach (Creature attacker in attackers) 
            {
                result.Add(new Attack(attacker));
            }
            return result;
        }

        public List<Block> GenerateBlockActions(Player player, Player opponent, List<Attack> attack)
        {
            return new List<Block>();
        }
    }
}
